package com.ruoyi.buiness.mapper;

import com.ruoyi.buiness.domain.Phone;

import java.util.List;

/**
 * phoneMapper接口
 *
 * @author ruoyi
 * @date 2020-12-19
 */
public interface PhoneMapper {
    /**
     * 查询phone
     *
     * @param id phoneID
     * @return phone
     */
    public Phone selectPhoneById(Long id);

    /**
     * 查询phone列表
     *
     * @param phone phone
     * @return phone集合
     */
    public List<Phone> selectPhoneList(Phone phone);

    /**
     * 新增phone
     *
     * @param phone phone
     * @return 结果
     */
    public int insertPhone(Phone phone);

    /**
     * 修改phone
     *
     * @param phone phone
     * @return 结果
     */
    public int updatePhone(Phone phone);

    /**
     * 删除phone
     *
     * @param id phoneID
     * @return 结果
     */
    public int deletePhoneById(Long id);

    /**
     * 批量删除phone
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePhoneByIds(String[] ids);
}
